#include <bits/stdc++.h>
using namespace std;

int a[100005];
map < int, int > mp;

int read()
{
	int n = 0, d = 1;
	char c;
	while ((c = getchar()) && !isdigit(c)) {if (c == '-') d = -1;}
	if (isdigit(c)) n = (c - '0');
	while ((c = getchar()) && c <= '9' && c >= '0') {n = n * 10 + (c - '0');}
	return n * d;
}

void write(int n)
{
	if (n < 0) {n = -n; putchar('-');}
	if (n >= 10) write(n / 10);
	putchar(char(n % 10 + '0'));
}

int main()
{
	freopen("duel.in", "r", stdin);
	freopen("duel.out", "w", stdout);
	int n = read(), x;
    for (int i = 1; i <= n; i++)
        mp[read()]++;
    int ans = n, sum = 0;
    for (auto e : mp)
    {
        ans -= min(e.second, sum);
        sum -= min(e.second, sum);
        sum += e.second;
    }
    write(ans);
	return 0;
}